package test;

import java.util.Scanner;  
/** 
 *  
 * @author Administrator 
 * 
 */  
public class ServerWriteThread implements Runnable{  
    /** 
     * 服务器端写线程 
     */  
    public ServerWriteThread(){  
        new Thread(this).start();  
    }  
      
    public void run(){  
        Scanner s= new Scanner(System.in);  
        while(true){  
            System.out.println("输入：");  
            Server.msg = s.next();  
            Server.signal = true;  
        }  
    }  
  
}